package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.BillStatus;
import com.ygqh.baby.po.YgWholesalerBillRecord;
import com.ygqh.baby.po.YgWholesalerBillRecordExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @author Ss
 */
public interface YgWholesalerBillRecordMapper {
	int countByExample(YgWholesalerBillRecordExample example);

	int deleteByExample(YgWholesalerBillRecordExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgWholesalerBillRecord record);

	int insertSelective(YgWholesalerBillRecord record);

	List<YgWholesalerBillRecord> selectByExample(YgWholesalerBillRecordExample example);

	YgWholesalerBillRecord selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgWholesalerBillRecord record, @Param("example") YgWholesalerBillRecordExample example);

	int updateByExample(@Param("record") YgWholesalerBillRecord record, @Param("example") YgWholesalerBillRecordExample example);

	int updateByPrimaryKeySelective(YgWholesalerBillRecord record);

	int updateByPrimaryKey(YgWholesalerBillRecord record);

	int countSuper(@Param("wholesalerName") String wholesalerName, @Param("startDate") Date startDate, @Param("endDate") Date endDate,
				   @Param("billCode") String billCode, @Param("billStatus") BillStatus billStatus);

	List<YgWholesalerBillRecord> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("wholesalerName") String wholesalerName,
											 @Param("startDate") Date startDate, @Param("endDate") Date endDate,
											 @Param("billCode") String billCode, @Param("billStatus") BillStatus billStatus);

}



